﻿using System;

namespace Common.Log
{
    public class LogInfoModel
    {
        /// <summary>
        /// 分店ID
        /// </summary>
        public Int32 StoreID
        {
            get;
            set;
        }
        /// <summary>
        /// 分店名称
        /// </summary>
        public String StoreName
        {
            get;
            set;
        }
        /// <summary>
        /// 操作类型（5：打开页面；10：查询页面；15：提交；20：修改）
        /// </summary>
        public int OperateType
        {
            get;
            set;
        }
        /// <summary>
        /// 操作类型（5：打开页面；10：查询页面；15：提交；20：修改）
        /// </summary>
        public string OperateTypeName
        {
            get
            {
                string operateTypeName = string.Empty;
                if (OperateType > 0)
                {
                    switch (OperateType)
                    {
                        case 5:
                            operateTypeName = "打开页面";
                            break;
                        case 10:
                            operateTypeName = "查询页面";
                            break;
                        case 15:
                            operateTypeName = "提交";
                            break;
                        case 20:
                            operateTypeName = "修改";
                            break;
                        default:
                            break;
                    }
                }
                return operateTypeName;
            }
        }
        /// <summary>
        /// 模块
        /// </summary>
        public String Controller
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public String Action
        {
            get;
            set;
        }
        /// <summary>
        /// 操作内容
        /// </summary>
        public String Content
        {
            get;
            set;
        }
        /// <summary>
        /// 查询Where条件
        /// </summary>
        public String QueryWhere
        {
            get;
            set;
        }
        /// <summary>
        /// 状态，默认5
        /// </summary>
        public int Status
        {
            get;
            set;
        }
        string _operatorID = "0";
        /// <summary>
        /// 添加人
        /// </summary>
        public String OperatorID
        {
            get { return _operatorID; }
            set { _operatorID = value; }
        }
        /// <summary>
        /// 操作员编号
        /// </summary>
        public String OperatorCode
        {
            get;
            set;
        }
        /// <summary>
        /// 操作人名称
        /// </summary>
        public String OperatorName
        {
            get;
            set;
        }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime
        {
            get;
            set;
        }
    }
}
